package de.grosjohann.android.feuerwehr.domain;

import java.io.Serializable;

import org.json.JSONException;

import de.grosjohann.android.feuerwehr.type.IWarningType;

public abstract class AbstractWarning<T extends Enum<? extends IWarningType>>
  implements Serializable {

  private final T level;

  public AbstractWarning(T newLevel) throws JSONException {
    level = newLevel;
  }

  public T getLevel() {
    return level;
  }

  abstract public String getMessage();

  abstract public String getDetail();

  abstract public String getEnd();
}
